package com.ruoyi.finance.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.finance.domain.TAccountSets;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 账套Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-22
 */
@Mapper
public interface TAccountSetsMapper extends BaseMapper<TAccountSets>
{
    /**
     * 查询账套
     * 
     * @param id 账套主键
     * @return 账套
     */
    public TAccountSets selectTAccountSetsById(Long id);

    /**
     * 查询账套列表
     * 
     * @param tAccountSets 账套
     * @return 账套集合
     */
    public List<TAccountSets> selectTAccountSetsList(TAccountSets tAccountSets);

    /**
     * 新增账套
     * 
     * @param tAccountSets 账套
     * @return 结果
     */
    public int insertTAccountSets(TAccountSets tAccountSets);

    /**
     * 修改账套
     * 
     * @param tAccountSets 账套
     * @return 结果
     */
    public int updateTAccountSets(TAccountSets tAccountSets);

    /**
     * 删除账套
     * 
     * @param id 账套主键
     * @return 结果
     */
    public int deleteTAccountSetsById(Long id);

    /**
     * 批量删除账套
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTAccountSetsByIds(Long[] ids);

    List<TAccountSets> listAccountSetAll(@Param("userId") Long userId);
}
